import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/Home.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      meta: {
        title: '首页'
      }
    }, {
      path: '/tiktok',
      name: 'Tiktok',
      component: () => import('../views/tiktok.vue'),
      meta: {
        title: '抖音'
      }
    }, {
      path: '/zhifubao',
      name: 'ZhiFuBao',
      component: () => import('../views/zhifubao.vue'),
      meta: {
        title: '支付宝'
      }
    }, {
      path: '/gold',
      name: 'Gold',
      component: () => import('../views/gold.vue'),
      meta: {
        title: '赚💰'
      }
    }, {
      path: '/tool',
      name: 'Tool',
      component: () => import('../views/tool.vue'),
      meta: {
        title: '工具'
      }
    },
  ]
})

export default router
